package com.qingke.ssh.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name = "student")
public class Student {
	@Id
	@Column(name = "id")
	private int id;
	@Column(name = "name")
	private String name;
	@Column(name = "sex")
	private String sex;
	@Column(name = "phone")
	private String phone;
	@Column(name = "Identity")
	private String Identity;
	@Column(name = "code")
	private String code;
	@OneToOne
	@PrimaryKeyJoinColumn
	private StudentLogin studentLogin;

	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public String getSex() {
		return sex;
	}

	public String getPhone() {
		return phone;
	}

	public String getIdentity() {
		return Identity;
	}

	public String getCode() {
		return code;
	}

	public StudentLogin getStudentLogin() {
		return studentLogin;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public void setIdentity(String identity) {
		Identity = identity;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public void setStudentLogin(StudentLogin studentLogin) {
		this.studentLogin = studentLogin;
	}

}
